package cn.itcast.itcaststore.serive.impl;

import cn.itcast.itcaststore.dao.ModifyuserinfoDao;
import cn.itcast.itcaststore.dao.impl.ModifyuserinfoDaoImpl;
import cn.itcast.itcaststore.serive.ModifyuserinfoService;

/**
 * @Auther: 万秋泊
 * @Date: 2021/11/1 17:00
 * @Description:
 */
public class ModifyuserinfoServiceImpl implements ModifyuserinfoService {
    private ModifyuserinfoDao modifyuserinfoDao = new ModifyuserinfoDaoImpl();
    @Override
    public boolean updateUserInfo(String username,String password, String sex, String phone) {
        int count =modifyuserinfoDao.updateUserInfo(username,password,sex,phone);
        if (count==1){
            return true;
        }
        return false;
    }
}
